package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_app_user_details")
public class AppUserDetails extends Model<AppUserDetails> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String USER_NAME = "user_name";
    public static final String USER_PIC = "user_pic";
    public static final String USER_VALID_CARD = "user_valid_card";
    public static final String USER_BIRTHDAY_CARD = "user_birthday_card";
    public static final String AGE = "age";
    public static final String USER_SIGN_ORG = "user_sign_org";
    public static final String USER_ID_CARD = "user_id_card";
    public static final String ID_CARD_FRONT = "id_card_front";
    public static final String ID_CARD_BACK = "id_card_back";
    public static final String ID_CARD_HANDHELD = "id_card_handheld";
    public static final String AREA_ID = "area_id";
    public static final String AREA_NAME = "area_name";
    public static final String ADDR_DETAILS = "addr_details";
    public static final String USER_TRAIN = "user_train";
    public static final String USER_DEGREE = "user_degree";
    public static final String SKILL_LEVEL = "skill_level";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String UPDATE_TIME = "update_time";
    private static final long serialVersionUID = 1L;
    private Long id;
        /**
     * 用户编号
     */
         private Long userId;
        /**
     * 姓名
     */
         private String userName;
        /**
     * 头像
     */
         private String userPic;
        /**
     * 身份证有效期
     */
         private String userValidCard;
        /**
     * 出生年月
     */
         private String userBirthdayCard;
        /**
     * 用户年龄
     */
         private Integer age;
        /**
     * 签发机关
     */
         private String userSignOrg;
        /**
     * 身份证编号
     */
         private String userIdCard;
        /**
     * 身份证正面
     */
         private String idCardFront;
        /**
     * 身份证反面
     */
         private String idCardBack;
        /**
     * 手持身份证
     */
         private String idCardHandheld;
        /**
     * 地址id
     */
         private String areaId;
        /**
     * 地址
     */
         private String areaName;
        /**
     * 详细地址
     */
         private String addrDetails;
        /**
     * 培训信息 1-有 2-无
     */
         private String userTrain;
        /**
     * 文化程度
     */
         private Boolean userDegree;
        /**
     * 技能等级
     */
         private Boolean skillLevel;
        /**
     * 创建时间
     */
         @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
        /**
     * 删除标识0-未删除 1-已删除
     */
         private Boolean delFlag;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
